package com.lw.constant;

/**
 * 游戏状态
 *  0未开始，1游戏中，2通关失败，3通关成功，4暂停
 */
public enum GameState {

    NOT_STARTED(0, "未开始"),
    IN_PROGRESS(1, "游戏中"),
    FAILED(2, "通关失败"),
    SUCCESS(3, "通关成功"),
    PAUSED(4, "暂停");


    int code;
    String desc;

    GameState(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return this.code;
    }

}
